package cn.feichanghao.nutz.quickstart.auth.model;

import java.io.Serializable;
import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

@Table("t_app_menu")
public class Menu implements Serializable {

	private static final long serialVersionUID = -3677265355868693612L;
	@Column("menu_id")
	@Id
	private int id;
	@Column("menu_title")
	private String title;
	@Column("menu_url")
	private String url;
	@Column("menu_desc")
	private String desc;
	@Column("menu_order")
	private int order;
	@Column("menu_enable")
	private boolean enable;
	@Column("menu_created")
	private Date created;

	public Menu()
	{
		
	}
	
	public Menu(String title, String url, String desc) {
		this.title = title;
		this.url = url;
		this.desc = desc;
		this.order = 0;
		this.enable = true;
	}

	public Menu(String title, String url, String desc, int order, boolean enable) {
		this.title = title;
		this.url = url;
		this.desc = desc;
		this.order = order;
		this.enable = enable;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	public int getOrder() {
		return order;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getCreated() {
		return created;
	}

}
